package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采集项对象 bus_collection_item
 *
 * @author asher
 * @date 2021-12-13
 */
public class BusCollectionItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采集项主键id */
    private Long collectionItemId;

    /** 序号 */
    @Excel(name = "序号")
    private Integer sortNo;

    /** 量纲 */
    @Excel(name = "量纲")
    private String dimension;

    /** 采集项名称 */
    @Excel(name = "采集项名称")
    private String name;

    /** 采集方法 */
    @Excel(name = "采集方法")
    private String methodType;

    /** 采集类型 */
    @Excel(name = "采集类型")
    private String type;

    /** 通道id */
    @Excel(name = "通道id")
    private Long channelId;

    /** 采集设备id */
    @Excel(name = "采集设备id")
    private Long deviceId;

    /** 参数 */
    @Excel(name = "参数")
    private String property;

    /** 采集频率 */
    @Excel(name = "采集频率")
    private String frequency;

    /** 采集开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 采集结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 采集状态 */
    @Excel(name = "采集状态")
    private String status;

    /** 实验方案id
     */
    @Excel(name = "实验方案id ")
    private Long schemeId;

    /** 采集卡id */
    @Excel(name = "采集卡id")
    private Long acquisitionCardId;

    /** 采集卡code */
    @Excel(name = "采集卡code")
    private String cardCode;

    /** 通道code */
    @Excel(name = "通道code")
    private String channelCode;

    /** 量程最小值 */
    @Excel(name = "量程最小值")
    private Double minRange;

    /** 量程最大值 */
    @Excel(name = "量程最大值")
    private Double maxRange;

    /** 每个通道采样数 */
    @Excel(name = "每个通道采样数")
    private Long samplesPerChannel;

    /** 工控机编码 */
    @Excel(name = "工控机编码")
    private String deviceCode;

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public void setCollectionItemId(Long collectionItemId)
    {
        this.collectionItemId = collectionItemId;
    }

    public Long getCollectionItemId()
    {
        return collectionItemId;
    }
    public void setSortNo(Integer sortNo)
    {
        this.sortNo = sortNo;
    }

    public Integer getSortNo()
    {
        return sortNo;
    }
    public void setDimension(String dimension)
    {
        this.dimension = dimension;
    }

    public String getDimension()
    {
        return dimension;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setMethodType(String methodType)
    {
        this.methodType = methodType;
    }

    public String getMethodType()
    {
        return methodType;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setChannelId(Long channelId)
    {
        this.channelId = channelId;
    }

    public Long getChannelId()
    {
        return channelId;
    }
    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setProperty(String property)
    {
        this.property = property;
    }

    public String getProperty()
    {
        return property;
    }
    public void setFrequency(String frequency)
    {
        this.frequency = frequency;
    }

    public String getFrequency()
    {
        return frequency;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setSchemeId(Long schemeId)
    {
        this.schemeId = schemeId;
    }

    public Long getSchemeId()
    {
        return schemeId;
    }
    public void setAcquisitionCardId(Long acquisitionCardId)
    {
        this.acquisitionCardId = acquisitionCardId;
    }

    public Long getAcquisitionCardId()
    {
        return acquisitionCardId;
    }
    public void setCardCode(String cardCode)
    {
        this.cardCode = cardCode;
    }

    public String getCardCode()
    {
        return cardCode;
    }
    public void setChannelCode(String channelCode)
    {
        this.channelCode = channelCode;
    }

    public String getChannelCode()
    {
        return channelCode;
    }
    public void setMinRange(Double minRange)
    {
        this.minRange = minRange;
    }

    public Double getMinRange()
    {
        return minRange;
    }
    public void setMaxRange(Double maxRange)
    {
        this.maxRange = maxRange;
    }

    public Double getMaxRange()
    {
        return maxRange;
    }
    public void setSamplesPerChannel(Long samplesPerChannel)
    {
        this.samplesPerChannel = samplesPerChannel;
    }

    public Long getSamplesPerChannel()
    {
        return samplesPerChannel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("collectionItemId", getCollectionItemId())
                .append("sortNo", getSortNo())
                .append("dimension", getDimension())
                .append("name", getName())
                .append("methodType", getMethodType())
                .append("type", getType())
                .append("channelId", getChannelId())
                .append("deviceId", getDeviceId())
                .append("property", getProperty())
                .append("frequency", getFrequency())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("status", getStatus())
                .append("schemeId", getSchemeId())
                .append("acquisitionCardId", getAcquisitionCardId())
                .append("cardCode", getCardCode())
                .append("channelCode", getChannelCode())
                .append("minRange", getMinRange())
                .append("maxRange", getMaxRange())
                .append("samplesPerChannel", getSamplesPerChannel())
                .toString();
    }
}